package com.yusheng.tr.common.core.entity.multi;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 运输距离表
 * </p>
 *
 * @author author
 * @since 2023-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("trans_dist")
@Schema(title = "TransDist对象", description="运输距离表")
public class TransDistEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(name = "运输距离主键")
    private String id;

    @Schema(name = "始发地")
    private String startArea;

    @Schema(name = "到达地")
    private String endArea;

    @Schema(name = "距离")
    private String dist;


    @TableField(value = "create_by",fill = FieldFill.INSERT)
    @Schema(name = "创建人")
    private String createBy;

    @Schema(name = "更新者")
    @TableField(value = "update_by",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @Schema(name = "创建时间")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(name = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(name = "备注")
    private String remark;
}
